package com.csaba.connector.bha;

import java.util.HashMap;

public class Codes
{
	public final static String SERVER_URL = "https://ibank." + ad1("BHA").toLowerCase()
			+ ".hu/IBWBGateway/IBGatewayServlet";
	public final static HashMap<String, String> FUNCTION_CODES;
	static
	{
		FUNCTION_CODES = new HashMap<String, String>();
		FUNCTION_CODES.put("Login", "063");
		FUNCTION_CODES.put("CapSelect", "072");
		FUNCTION_CODES.put("AccHistory", "001");
		FUNCTION_CODES.put("AccOverview", "002");
		FUNCTION_CODES.put("CreditOverView", "004");
		FUNCTION_CODES.put("CardOverView", "003");
		FUNCTION_CODES.put("CardLimit", "045");
		FUNCTION_CODES.put("BVKOverView", "005");
		FUNCTION_CODES.put("CardHistory", "006");
		FUNCTION_CODES.put("AccStatement", "007");
		FUNCTION_CODES.put("AccessPostFile", "008");
		FUNCTION_CODES.put("WaitingForGrant", "009");
		FUNCTION_CODES.put("NotCompletedMission", "010");
		FUNCTION_CODES.put("Esetitransfer", "011");
		FUNCTION_CODES.put("Erteknapostransfermegb", "012");
		FUNCTION_CODES.put("Erteknapostransferrend", "013");
		FUNCTION_CODES.put("StandingOrderEntry", "014");
		FUNCTION_CODES.put("StandingOrderManagement", "015");
		FUNCTION_CODES.put("AuthorityForCollection", "016");
		FUNCTION_CODES.put("AuthorityForCollectionOrder", "017");
		FUNCTION_CODES.put("DevizaTransfer", "018");
		FUNCTION_CODES.put("PostPayingout", "019");
		FUNCTION_CODES.put("Azonnaliinternal", "020");
		FUNCTION_CODES.put("Erteknaposinternalmegb", "021");
		FUNCTION_CODES.put("Erteknaposinternalrend", "022");
		FUNCTION_CODES.put("InternalStandingOrder", "023");
		FUNCTION_CODES.put("InternalStandingManagement", "024");
		FUNCTION_CODES.put("Deposit", "025");
		FUNCTION_CODES.put("DepositManagement", "026");
		FUNCTION_CODES.put("Szemelyi", "027");
		FUNCTION_CODES.put("OpenCreditPretension", "028");
		FUNCTION_CODES.put("Uzleti", "029");
		FUNCTION_CODES.put("PortfolioCl", "030");
		FUNCTION_CODES.put("SecuritiesAccStatement", "031");
		FUNCTION_CODES.put("CommissionRevoke", "032");
		FUNCTION_CODES.put("BuyInvestmentCl", "033");
		FUNCTION_CODES.put("SellInvestmentCl", "034");
		FUNCTION_CODES.put("BuyStatePaperCl", "035");
		FUNCTION_CODES.put("SellStatePaperCl", "036");
		FUNCTION_CODES.put("BuyStockCl", "039");
		FUNCTION_CODES.put("SellStockCl", "040");
		FUNCTION_CODES.put("BuyCompanyBondCl", "041");
		FUNCTION_CODES.put("SellCompanyBondCl", "042");
		FUNCTION_CODES.put("InvAccStatementCl", "043");
		FUNCTION_CODES.put("CardRequest", "044");
		FUNCTION_CODES.put("CardActivate", "046");
		FUNCTION_CODES.put("BVKRequest", "047");
		FUNCTION_CODES.put("MobilBankRequest", "048");
		FUNCTION_CODES.put("MobilPrepaidPannon", "049");
		FUNCTION_CODES.put("MobilPrepaid", "050");
		FUNCTION_CODES.put("MobilPrepaidVoda", "051");
		FUNCTION_CODES.put("AccPersonalisation", "052");
		FUNCTION_CODES.put("PartnerManagement", "053");
		FUNCTION_CODES.put("ChangePassword", "054");
		FUNCTION_CODES.put("MailBox", "055");
		FUNCTION_CODES.put("Answering", "056");
		FUNCTION_CODES.put("LoyalityProgram", "057");
		FUNCTION_CODES.put("SignCatalog", "058");
		FUNCTION_CODES.put("Leasing", "059");
		FUNCTION_CODES.put("InternetCardRequest", "060");
		FUNCTION_CODES.put("CreateUser", "074");
		FUNCTION_CODES.put("FWFShoppingCardRequest", "069");
		FUNCTION_CODES.put("FWFCreditCardRequest", "070");
		FUNCTION_CODES.put("FWFOverdraft", "071");
		FUNCTION_CODES.put("MailBoxRead", "IB999");

	}

	public static String ad1( final String a )
	{
		final StringBuilder builder = new StringBuilder(a);
		for ( int i = 0; i < a.length(); i++ )
		{
			builder.setCharAt(i, (char) ( a.charAt(i) + 1 ));
		}
		return builder.toString();
	}
}
